Skip to content

Conversation

@allenporter
Copy link
Contributor

@allenporter allenporter commented Dec 6, 2025

Lower noisy log messages for internal device manager connections state details across mqtt / local mixed channels. We'll instead rely on command failure symptoms and diagnose details with debug logs.

Fixes #616

Copilot AI review requested due to automatic review settings December 6, 2025 16:28
Lash-L
Lash-L previously approved these changes Dec 6, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reduces log noise by lowering the severity level of internal protocol connection messages from warning to debug. These messages represent expected operational states in the device manager's fallback mechanism between MQTT and local channels, rather than actionable errors.

Key Changes:

  • Changed command failure logs from warning to debug when falling back between channels
  • Lowered connection state messages (already connected, connection lost, initial connection failures) to debug level
  • Improved message clarity for the first local connection attempt to indicate retry behavior

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
roborock/devices/v1_channel.py Reduced log levels for command failures on channels (line 93) and initial local connection attempts (line 285) to debug
roborock/devices/local_channel.py Lowered "already connected" state (line 179) and connection loss events (line 217) to debug level

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@allenporter allenporter merged commit 6945c6a into Python-roborock:main Dec 7, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reduce logging for local device disconnects

2 participants